/*
** main.c for  in /home/georgi_v/rendu/CPE_2013_ed_corewar/asm
** 
** Made by georgi_v
** Login   <georgi_v@epitech.net>
** 
** Started on  Fri Dec  6 19:05:56 2013 georgi_v
** Last update Mon Dec  9 17:15:07 2013 yang jie
*/

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "libs/my.h"
#include "op.h"

char	**seperate_line(int fd)
{
  char	**dest;
  char	*str;

  str = get_next_line(fd);
  dest = parse_line(str, ',');
  free(str);
  return (dest);
}

void	my_print_tab(char **tab)
{
  int	i;

  i = 0;
  while (tab[i])
    {
      my_putstr("str[");
      my_putnbr(i);
      my_putstr("] = ");
      my_putstr(tab[i]);
      my_putchar('\n');
      i++;
    }
}

int	main(int ac,char **av)
{
  /* char **str; */
  /* int fd = open("42.s", O_RDONLY); */

  /* str = seperate_line(fd); */
  /* my_print_tab(str); */

  //  header_t	*header;
  //  header = malloc(sizeof(header_t));
  if (ac == 2)
    {
      my_putnbr(check_type(av[1]));
    }
  else
    return (0);
}
